<!DOCTYPE html>
<html>
<head>
    <title>app按钮列表</title>
    <#include "/header.html">
    <link type="text/css" rel="stylesheet" href="${request.contextPath}/statics/plugins/layui/css/layui.css">
    <style>
        th {
            text-align: center;
        }

        .form-control {
            margin-left: 10px;
        }

    </style>

</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">


            <form class="form-inline">
                <select v-model="q.type" class="form-control">
                    <option v-for="type in this.types" :value="type.menuType">{{type.typeName}}</option>
                </select>
                <div class="form-group ">
                    <input type="button" class="btn btn-default form-control" @click="query" value="查询"/>
                    <input type="button" class="btn btn-primary form-control" @click="update" value="修改"/>
                </div>
            </form>

        </div>

        <table id="jqGrid"></table>

        <div id="jqGridPager"></div>
    </div>

    <div v-show="showUpdate" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal updateBanner" enctype="multipart/form-data">
            <div class="form-group">
                <div class="col-sm-2 control-label">按钮id</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="goodsBannerId"
                           readonly="readonly" v-model="appMenu.menuId"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">选择图片</div>
                <div class="col-sm-10">
                    <input type="file" class="form-control" name="file" id="menuImg"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-2 control-label">标题</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="name" v-model="appMenu.name"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">状态</div>
                <div class="col-sm-10">
                    <select class="form-control" name="state" v-model="appMenu.state">
                        <option v-for="state in this.states" :value="state.value">{{state.msg}}</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">状态</div>
                <div class="col-sm-10">
                    <select v-model="appMenu.type" class="form-control">
                        <option v-for="type in this.types" :value="type.menuType">{{type.typeName}}</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary " @click="modify" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>


<script src="${request.contextPath}/statics/js/modules/appIndex/menuList.js?_${.now?long}"></script>
<script src="${request.contextPath}/statics/plugins/layui/layui.js"></script>
<script>


</script>
</body>
</html>